package com.teachoa.web;

import com.teachoa.bean.User;

public class ProjectController extends BaseController {
	
	public void publish() {
		renderJsp("publish.jsp");
	}
	
	public void name() {
		renderJsp("name.jsp");
	}
	
	public void audit() {
		renderJsp("audit.jsp");
	}
	
	public void teamAudit() {
		renderJsp("teamAudit.jsp");
	}
	
	public void project() {
		renderJsp("project.jsp");
	}
	
	public void team() {
		renderJsp("team.jsp");
	}
	
	public void ask() {
		User user = getSessionAttr("user");
		int type = user.getInt("type");
		if(type==2) 
			renderJsp("ask/student.jsp");
		else if(type==3)
			renderJsp("ask/expert.jsp");
	}
	
}
